<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <title>云支付订单详情</title>
    <link type="image/png" rel="icon" href="http://options.yumi37.cn/cloud.png">
    <link rel="stylesheet" href="https://sp.jd.com/payment/2.0.0/css/main.css">
    <link rel="stylesheet" href="https://sp.jd.com/payment/1.2.0/css/bankList.css">
    <style>
        .shortcut{
            height: auto !important;
        }
        .shortcut .w {
            position: relative;
            height: 90px;
        }

        .w {
            width: 990px;
            margin: 0 auto;
        }

        .op-tab-content {
            padding: 15px 20px 20px 20px;
        }

        .op-tab-content .op-title {
            font-weight: 700;
            line-height: 32px;
        }

        .payment {
            background-color: #fff;
            padding: 12px 30px;
            box-shadow: 0 6px 32px rgba(0, 0, 0, .13);
        }

        .op-tab-content .op-line {
            line-height: 32px;
        }

        .font-red {
            color: #e31613;
        }

        .shortcut a:hover {
            color: #666;
        }

        .pay-on {
            color: #ffffff;
            background: linear-gradient(#ff403d,#e31613);
        }

        .pay-type-btn {
            width: 100px;
            float: left;
            text-align: center;
            cursor: pointer;
            border: 1px #ccc solid;
            border-bottom: none;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }
        @media screen and (max-width: 768px) {
            .w{
                width: 100% !important;
            }
            .leftTable{
                width: 100% !important;
            }
            .rightTable{
                display: none !important;
            }
            .bt-table{
                height: auto !important;
            }
            .leftLogo{
                width: 105px !important;
            }
            .leftLogo img{
                height: 30px !important;
                margin-top: 22px;
            }
            .payment{
                padding: 12px 8px !important;
            }
            .rightText{
                padding-left:5px !important;
            }
        }
    </style>
</head>
<body style="width: 100%;overflow: hidden">
<div class="shortcut">
    <div class="w" style="height: 68px;">
        <a class="s-logo" href="#" target="_blank">
            <img height="36" alt="云支付 收银台" src="http://options.yumi37.cn/logo2.png">
            <span style=" margin-left: 10px;padding-left: 20px;border-left: 2px solid #ccc;font-weight: 800;">我的收银台</span>
        </a>
        <span class="clr"></span>
    </div>
    <div class="w" style="height: 148px">
        <div class="tab-content-item op-tab-content j_tabContent payment" style="display: block;">
            <div class="op-title">订单信息</div>
            <!-- 线下汇款 获取验证码 -->
            <div class="j_enterpriseGetPhoneCode" style="border-top: 1px #ccc solid">
                <div class="op-line mb10">
                    <div><p style="width: 200px;float: left">收款方</p>
                        <p>交易单号</p></div>
                    <div><p style="width: 200px;float: left">盒子支付</p>
                        <p id="order_id">0000</p></div>
                </div>
            </div>
            <!-- 线下汇款 获取验证码 end -->
        </div>
    </div>
    <div class="w bt-table" style="height: 450px;">
        <div class="tab-content-item op-tab-content j_tabContent payment" style="display: block;">
            <div class="op-title">支付方式 ：</div>
            <div class="op-title">
                <div class="pay-on pay-type-btn" data-clicknum="1">快速转账</div>
                <div class="pay-type-btn" data-clicknum="2" style="margin-left: 10px;">支付宝扫码</div>
            </div>
            <!-- 线下汇款 获取验证码 -->
            <div class="j_enterpriseGetPhoneCode" style="border-top: 1px #ccc solid;clear: both">
                <div class="op-line mb10 mt10" style="font-weight: bold">
                    <img height="32" alt="云支付 收银台" src="http://options.yumi37.cn/time.png">
                    剩余支付时间<span id="minute_show" class="font-red">  </span>分<span id="second_show"
                                                                                  class="font-red">  </span>秒，请勿重复下单，超时订单自动取消。
                </div>
            </div>
            <!-- 线下汇款 获取验证码 end -->
            <!-- 线下汇款 确认后结果 -->
            <div class="op-enterprise-result j_enterpriseSendPhoneCode" style="overflow: hidden">
                <div class="op-article mb10">
                    <div style="width: 50%;float: left" class="leftTable">
                        <p style="height: 32px;line-height: 32px;border: 1px solid #ccc;padding: 10px;border-radius: 8px;">
                            <strong>金额：</strong> <span id="amount">0.00</span>
                            <button style="float: right" id="copy" data-clipboard-action="copy"
                                    data-clipboard-target="#amount" class="ui-button ui-button-L">复制
                            </button>
                        </p>
                        <p style="height: 32px;line-height: 32px;border: 1px solid #ccc;padding: 10px;border-radius: 8px;margin-top: 5px;">
                            <strong>户名：</strong> <span id="company">日照栉霖信息科技有限公司</span>
                            <button style="float: right" id="copy2" data-clipboard-action="copy"
                                    data-clipboard-target="#company" class="ui-button ui-button-L">复制
                            </button>
                        </p>
                        <p style="height: 32px;line-height: 32px;border: 1px solid #ccc;padding: 10px;border-radius: 8px;margin-top: 5px;">
                            <strong>账户：</strong> <span id="kahao">1625 0000 0002 8892 0</span>
                            <button style="float: right" id="copy3" data-clipboard-action="copy"
                                    data-clipboard-target="#kahao" class="ui-button ui-button-L">复制
                            </button>
                        </p>
                        <p style="height: 32px;line-height: 32px;border: 1px solid #ccc;padding: 10px;border-radius: 8px;margin-top: 5px;">
                            <strong>开户行：</strong> <span id="dizhi">华夏银行日照分行</span>
                            <button style="float: right" id="copy4" data-clipboard-action="copy"
                                    data-clipboard-target="#dizhi" class="ui-button ui-button-L">复制
                            </button>
                        </p>

                        <div class="payment-list payment" style="padding-left: 0px;">
                            <button class="ui-button ui-button-XL"
                                    onclick="window.location.href='http://options.yumi37.cn';">支付完成，确认返回
                            </button>
                        </div>
                    </div>
                    <div style="width: 50%;float: left;text-align: center" class="rightTable">
                        <img height="200" style="margin: 0 auto;display: block;" alt="云支付 收银台"
                             src="http://options.yumi37.cn/timg.jpg">
                        <p style="font-size: 16px;">请使用手机银行或者网上银行进行转账。</p>
                        <p style="font-size: 28px;font-weight: bold;line-height: 32px;margin-top: 10px;">请务必输入金额：<span
                                id="amount2" class="font-red"> 0 </span>元</p>
                    </div>
                </div>
            </div>
            <!-- 线下汇款 确认后结果 end -->
        </div>
    </div>
    <div style="clear: both;width: 990px;margin: 20px auto;overflow: hidden;background-color: #fff">
        <div class="leftLogo" style="float: left;width: 220px;"><img height="60" alt="云支付 收银台" src="http://options.yumi37.cn/logo2.png">
        </div>
        <div class="rightText" style="float: left;border-left: 1px #ccc solid;padding-left: 20px;">
            <p>1.请按照提示金额转账，否则无法到账。</p>
            <p>2.订单一次有效，如需再次付款，请重新生成订单。</p>
            <p>3.转账手续费由平台提供。</p>
            <p>4.转账时填写订单号会增加订单成功率。</p>
        </div>
    </div>
</div>

<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/clipboard.js/2.0.4/clipboard.min.js"></script>

<script type="text/javascript">

    var intDiff = parseInt(3600);//倒计时总秒数量

    function timer(intDiff) {
        window.setInterval(function () {
            var day = 0,
                hour = 0,
                minute = 0,
                second = 0;//时间默认值
            if (intDiff > 0) {
                day = Math.floor(intDiff / (60 * 60 * 24));
                hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
                minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
                second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
            }
            if (minute <= 9) minute = '0' + minute;
            if (second <= 9) second = '0' + second;
            $('#day_show').html(day + "天");
            $('#hour_show').html('<s id="h"></s>' + hour + '时');
            $('#minute_show').html('<s></s> ' + minute + ' ');
            $('#second_show').html('<s></s> ' + second + ' ');
            intDiff--;
        }, 1000);
    }

    $(function () {
        timer(intDiff);
    });
</script>
<script>
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null)return unescape(r[2]);
        return null;
    }
</script>
<script>
    $(function () {
        var order_id = GetQueryString("order_id")
        var amount = GetQueryString("amount")

        $("#order_id").text(order_id)
        $("#amount").text(amount)
        $("#amount2").text(amount)


        $(".pay-type-btn").on("click",function () {
            var clicknum = $(this).data("clicknum");
            if(clicknum == 2){
                alert("敬请期待！", 1500);
            }
        })

        var clipboard4 = new ClipboardJS('#copy4');
        clipboard4.on('success', function (e) {
            alert("复制成功", 1500);
            e.clearSelection();
            console.log(e.clearSelection);
        });

        var clipboard1 = new ClipboardJS('#copy');
        clipboard1.on('success', function (e) {
            alert("复制成功", 1500);
            e.clearSelection();
            console.log(e.clearSelection);
        });

        var clipboard2 = new ClipboardJS('#copy2');
        clipboard2.on('success', function (e) {
            alert("复制成功", 1500);
            e.clearSelection();
            console.log(e.clearSelection);
        });

        var clipboard3 = new ClipboardJS('#copy3');
        clipboard3.on('success', function (e) {
            alert("复制成功", 1500);
            e.clearSelection();
            console.log(e.clearSelection);
        });
    })
</script>
</body>
</html>
